// 导入vue-router
import {createRouter, createWebHistory} from 'vue-router'

// 定义路由关系
// @ts-ignore
const routes = [
    {
        path: '/',
        // @ts-ignore
        component: () => import('../views/Home.vue')
    }
]

// 创建路由器
const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

export default router